package com.ehome.poct.base.api.qry;

import com.ehome.core.constant.FilterRules;
import com.ehome.core.entity.Qry;
import com.ehome.core.annotations.FastQry;
import com.ehome.join.annotation.JoinField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * 终端诊所信息表DTO
 *
 * @author 路飞
 * @Date 2022-01-08 11:30
 */
@Data
public class TermClinicQry extends Qry {

    /**
     * 诊所附属信息主键ID
     */
    @ApiModelProperty("诊所附属信息主键ID")
    private Long termClinicId;

    /**
     * 诊所名称
     */
    @ApiModelProperty("诊所名称")
    @FastQry(value = FilterRules.LIKE,field = "name")
    private String name;
    /**
     * 联系电话
     */
    @ApiModelProperty("联系电话")
    private String phone;

    /**
     * 地址
     */
    @ApiModelProperty("地址")
    private String address;

    @FastQry(value = FilterRules.IN,field = "termClinicId")
    private List<Long> termClinicIds;

    @FastQry(value = FilterRules.LIKE,field = "shortId")
    @ApiModelProperty(value="诊所id短号（具有唯一性）")
    @JoinField("shortId")
    private String shortId;
}